
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 多媒体类型 1：抓拍 2：录音 3：视频
 * </p>
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum MultimediaTypeEnum {

    SNAP("1", "抓拍"),
    RECORDING("2", "录音"),
    VIDEO("3", "视频");
    private final String value;
    private final String description;

    public static MultimediaTypeEnum find(String val) {
        for (MultimediaTypeEnum dataScopeEnum : MultimediaTypeEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
